﻿using Common.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Service.Command
{
    public abstract class ProviderQueueCommand<TFactory, TRecord, TResponse> : QueueCommand<TRecord, TResponse>
        where TRecord : new()
        where TResponse : IResponseRecord, new()
    {
        protected TFactory Providers { get; private set; }

        public ProviderQueueCommand(TFactory providerFactory)
            : base()
        {
            if (providerFactory == null) throw new ArgumentNullException("providerFactory");

            Providers = providerFactory;
        }
    }
}


